<div class="problems view">
<h2><?php  __('Problem');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $problem['Problem']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $problem['Problem']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Cod Ciap'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $problem['Problem']['cod_ciap']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $problem['Problem']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $problem['Problem']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Problem', true), array('action' => 'edit', $problem['Problem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Problem', true), array('action' => 'delete', $problem['Problem']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $problem['Problem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Problems', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Problem', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Consults Practices', true), array('controller' => 'consults_practices', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Consults Practice', true), array('controller' => 'consults_practices', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Consults Recomendations', true), array('controller' => 'consults_recomendations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Consults Recomendation', true), array('controller' => 'consults_recomendations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Consults Tags', true), array('controller' => 'consults_tags', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Consults Tag', true), array('controller' => 'consults_tags', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Consults Vademecums', true), array('controller' => 'consults_vademecums', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Consults Vademecum', true), array('controller' => 'consults_vademecums', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Evolutions', true), array('controller' => 'evolutions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Evolution', true), array('controller' => 'evolutions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Historicoproblems', true), array('controller' => 'historicoproblems', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Historicoproblem', true), array('controller' => 'historicoproblems', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Results', true), array('controller' => 'results', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Result', true), array('controller' => 'results', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List People', true), array('controller' => 'people', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Person', true), array('controller' => 'people', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sinonimoproblems', true), array('controller' => 'sinonimoproblems', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sinonimoproblem', true), array('controller' => 'sinonimoproblems', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Consults Practices');?></h3>
	<?php if (!empty($problem['ConsultsPractice'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Consult Id'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Practice Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['ConsultsPractice'] as $consultsPractice):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $consultsPractice['id'];?></td>
			<td><?php echo $consultsPractice['consult_id'];?></td>
			<td><?php echo $consultsPractice['problem_id'];?></td>
			<td><?php echo $consultsPractice['practice_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'consults_practices', 'action' => 'view', $consultsPractice['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'consults_practices', 'action' => 'edit', $consultsPractice['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'consults_practices', 'action' => 'delete', $consultsPractice['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $consultsPractice['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Consults Practice', true), array('controller' => 'consults_practices', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Consults Recomendations');?></h3>
	<?php if (!empty($problem['ConsultsRecomendation'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Consult Id'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Recomendation Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['ConsultsRecomendation'] as $consultsRecomendation):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $consultsRecomendation['id'];?></td>
			<td><?php echo $consultsRecomendation['consult_id'];?></td>
			<td><?php echo $consultsRecomendation['problem_id'];?></td>
			<td><?php echo $consultsRecomendation['recomendation_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'consults_recomendations', 'action' => 'view', $consultsRecomendation['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'consults_recomendations', 'action' => 'edit', $consultsRecomendation['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'consults_recomendations', 'action' => 'delete', $consultsRecomendation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $consultsRecomendation['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Consults Recomendation', true), array('controller' => 'consults_recomendations', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Consults Tags');?></h3>
	<?php if (!empty($problem['ConsultsTag'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Consult Id'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Tag Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['ConsultsTag'] as $consultsTag):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $consultsTag['id'];?></td>
			<td><?php echo $consultsTag['consult_id'];?></td>
			<td><?php echo $consultsTag['problem_id'];?></td>
			<td><?php echo $consultsTag['tag_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'consults_tags', 'action' => 'view', $consultsTag['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'consults_tags', 'action' => 'edit', $consultsTag['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'consults_tags', 'action' => 'delete', $consultsTag['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $consultsTag['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Consults Tag', true), array('controller' => 'consults_tags', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Consults Vademecums');?></h3>
	<?php if (!empty($problem['ConsultsVademecum'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Consult Id'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Vademecum Id'); ?></th>
		<th><?php __('Posologia'); ?></th>
		<th><?php __('Fecha Inicio'); ?></th>
		<th><?php __('Fecha Fin'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['ConsultsVademecum'] as $consultsVademecum):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $consultsVademecum['id'];?></td>
			<td><?php echo $consultsVademecum['consult_id'];?></td>
			<td><?php echo $consultsVademecum['problem_id'];?></td>
			<td><?php echo $consultsVademecum['vademecum_id'];?></td>
			<td><?php echo $consultsVademecum['posologia'];?></td>
			<td><?php echo $consultsVademecum['fecha_inicio'];?></td>
			<td><?php echo $consultsVademecum['fecha_fin'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'consults_vademecums', 'action' => 'view', $consultsVademecum['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'consults_vademecums', 'action' => 'edit', $consultsVademecum['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'consults_vademecums', 'action' => 'delete', $consultsVademecum['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $consultsVademecum['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Consults Vademecum', true), array('controller' => 'consults_vademecums', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Evolutions');?></h3>
	<?php if (!empty($problem['Evolution'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Fecha'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Person Id'); ?></th>
		<th><?php __('Client Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['Evolution'] as $evolution):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $evolution['id'];?></td>
			<td><?php echo $evolution['description'];?></td>
			<td><?php echo $evolution['fecha'];?></td>
			<td><?php echo $evolution['problem_id'];?></td>
			<td><?php echo $evolution['person_id'];?></td>
			<td><?php echo $evolution['client_id'];?></td>
			<td><?php echo $evolution['created'];?></td>
			<td><?php echo $evolution['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'evolutions', 'action' => 'view', $evolution['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'evolutions', 'action' => 'edit', $evolution['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'evolutions', 'action' => 'delete', $evolution['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $evolution['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Evolution', true), array('controller' => 'evolutions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Historicoproblems');?></h3>
	<?php if (!empty($problem['Historicoproblem'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Fecha'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Stateproblem Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['Historicoproblem'] as $historicoproblem):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $historicoproblem['id'];?></td>
			<td><?php echo $historicoproblem['fecha'];?></td>
			<td><?php echo $historicoproblem['problem_id'];?></td>
			<td><?php echo $historicoproblem['stateproblem_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'historicoproblems', 'action' => 'view', $historicoproblem['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'historicoproblems', 'action' => 'edit', $historicoproblem['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'historicoproblems', 'action' => 'delete', $historicoproblem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $historicoproblem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Historicoproblem', true), array('controller' => 'historicoproblems', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Results');?></h3>
	<?php if (!empty($problem['Result'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Practice Id'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Consult Id'); ?></th>
		<th><?php __('Fecha Solicitud'); ?></th>
		<th><?php __('Conclusion'); ?></th>
		<th><?php __('Archivo'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['Result'] as $result):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $result['id'];?></td>
			<td><?php echo $result['name'];?></td>
			<td><?php echo $result['practice_id'];?></td>
			<td><?php echo $result['problem_id'];?></td>
			<td><?php echo $result['consult_id'];?></td>
			<td><?php echo $result['fecha_solicitud'];?></td>
			<td><?php echo $result['conclusion'];?></td>
			<td><?php echo $result['archivo'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'results', 'action' => 'view', $result['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'results', 'action' => 'edit', $result['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'results', 'action' => 'delete', $result['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $result['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Result', true), array('controller' => 'results', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related People');?></h3>
	<?php if (!empty($problem['Person'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Name2'); ?></th>
		<th><?php __('Name3'); ?></th>
		<th><?php __('Lastname'); ?></th>
		<th><?php __('Lastname2'); ?></th>
		<th><?php __('Lastname3'); ?></th>
		<th><?php __('Stateperson Id'); ?></th>
		<th><?php __('Gender Id'); ?></th>
		<th><?php __('Sex Id'); ?></th>
		<th><?php __('Fecha Nacimiento'); ?></th>
		<th><?php __('Typodocument Id'); ?></th>
		<th><?php __('Nro Documento'); ?></th>
		<th><?php __('Gruposanguineo Id'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Telefono'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['Person'] as $person):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $person['id'];?></td>
			<td><?php echo $person['name'];?></td>
			<td><?php echo $person['name2'];?></td>
			<td><?php echo $person['name3'];?></td>
			<td><?php echo $person['lastname'];?></td>
			<td><?php echo $person['lastname2'];?></td>
			<td><?php echo $person['lastname3'];?></td>
			<td><?php echo $person['stateperson_id'];?></td>
			<td><?php echo $person['gender_id'];?></td>
			<td><?php echo $person['sex_id'];?></td>
			<td><?php echo $person['fecha_nacimiento'];?></td>
			<td><?php echo $person['typodocument_id'];?></td>
			<td><?php echo $person['nro_documento'];?></td>
			<td><?php echo $person['gruposanguineo_id'];?></td>
			<td><?php echo $person['email'];?></td>
			<td><?php echo $person['telefono'];?></td>
			<td><?php echo $person['created'];?></td>
			<td><?php echo $person['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'people', 'action' => 'view', $person['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'people', 'action' => 'edit', $person['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'people', 'action' => 'delete', $person['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $person['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Person', true), array('controller' => 'people', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Sinonimoproblems');?></h3>
	<?php if (!empty($problem['Sinonimoproblem'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($problem['Sinonimoproblem'] as $sinonimoproblem):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sinonimoproblem['id'];?></td>
			<td><?php echo $sinonimoproblem['name'];?></td>
			<td><?php echo $sinonimoproblem['created'];?></td>
			<td><?php echo $sinonimoproblem['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'sinonimoproblems', 'action' => 'view', $sinonimoproblem['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'sinonimoproblems', 'action' => 'edit', $sinonimoproblem['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'sinonimoproblems', 'action' => 'delete', $sinonimoproblem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sinonimoproblem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sinonimoproblem', true), array('controller' => 'sinonimoproblems', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
